<form action="{:url()}" method="post" data-auto="true" class="layui-form layui-card">
<div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label">站内信标题</label>
            <div class="layui-input-block">
                <input name="title" value="{$vo.title|default=''}" required vali-name="标题名称" placeholder="请输入文章标题" class="layui-input" type="text">
                <p class="help-block"><b>必填</b>，请填写站内信标题</p>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">站内信</label>
                <div class="layui-input-block">
                    <textarea placeholder="站内信内容" class="layui-textarea" name="content" required vali-name="站内信内容">{$vo.content|default=''}</textarea>
                    <p class="help-block">
                        <b>站内信内容必须填写</b>
                    </p>
                </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">图片</label>
            <div class="layui-input-block">
                <input type="hidden" data-accept-mime="image/*" data-cut-width="320" data-cut-height="160"   data-max-width="320" data-max-height="160" data-file-type="1" name="image" value="{$vo.image|default=''}">
                <script>$('[name=image]').uploadOneImage();</script>
            </div>
        </div>
    <div class="hr-line-dashed"></div>
    <input name="member_id" value="{$vo.member_id|default='0'}"   placeholder="请输入会员id" class="layui-input" type="hidden">
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>
    {/notempty}
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</div>
</form>
